package com.aegis.api.auth.service;

import com.aegis.api.auth.config.FeignConfiguration;
import com.aegis.api.auth.model.WxPermission;
import com.aegis.api.auth.model.WxRole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author wuweixin
 * 
 * @Version 1.0
 * @Descritube
 */
public interface WxAuthApi {


    /**
     * 读取系统的所有权限
     *
     * @return
     */
    @GetMapping("/wx/get1")
    List<WxPermission> getAllPermission();


    /**
     * 读取用户的权限
     *
     * @param userId
     * @return
     */
    @GetMapping("/wx/get2")
    List<WxPermission> getUserPermission(Object userId);


    /**
     * @param userId
     * @return
     */
    @GetMapping("/wx/get3")
    List<WxRole> getUserRole(Object userId);


}
